import { useProjectApi } from '@/services/api'
import { useBaseModel } from '@/hooks/baseModel'


export default function Project(){

  const projectApi = useProjectApi()

  const listModel = useBaseModel(() => projectApi.list(0))
  listModel.loadData.autoRun([])

  const infoModel = useBaseModel((id: string) => projectApi.info(id))

  return {
    listModel,
    infoModel
  }

}
